package com.ksd.modules.advert.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ksd.commons.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 广告
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xk_advert")
@ApiModel(value = "AdminAdvert", description = "广告")
public class AdminAdvert extends AbstractEntity {

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("广告名称")
    private String name;

    @ApiModelProperty("有效开始时间")
    private String startTime;

    @ApiModelProperty("有效结束时间")
    private String endTime;

    @ApiModelProperty("广告图片")
    private String cover;

    @ApiModelProperty("跳转模式 1：无 2：链接 ")
    private Integer skipModel;

    @ApiModelProperty("链接，图片，界面调整又具体的值")
    private String skipValue;

    @ApiModelProperty("广告链接标题：须限定字数200")
    private String skipTitle;

    @ApiModelProperty("开启状态 1：开启 0：未开启")
    private Integer status;
    // 创建时间
    private LocalDateTime createTime;
    // 更新时间
    private LocalDateTime updateTime;
    @ApiModelProperty("是否删除 0=否,1=是")
    private Integer isDeleted;
    /**
     * {label: '首页广告', value: 1},
     *   {label: '课程广告', value: 2},
     *   {label: '文章广告', value: 3},
     *   {label: '个人中心广告', value: 4},
     *   {label: '文章明细广告', value: 5},
     *   {label: '课程明细广告', value: 6},
     *   {label: '悬浮广告', value: 7},
     *   {label: '小册广告', value: 8},
     *   {label: '小册明细广告', value: 9},
     *   {label: '专题广告', value: 10},
     *   {label: '专题明细广告', value:11},
     *   {label: '个人社区广告', value: 12},
     *   {label: '资源广告', value: 13},
     *   {label: '资源明细广告', value:14},
     */
    @ApiModelProperty("广告功能类型 1：首页弹框广告 2：文章列表广告 3：文章内容banner广告")
    private Integer type;

    @ApiModelProperty("广告所有者ID(目前主要是为了短视频广告)")
    private Long advertiserId;

    @ApiModelProperty("广告所有者昵称(目前主要是为了短视频广告)")
    private String advertiserName;

    @ApiModelProperty("排序")
    private Integer sorted;
}
